import request from '@/utils/request'
export function getStudent(){
    return request({
        url:'/students_war_exploded/all',
        method:'get',
        headers: {
            'Content-Type': 'application/json'
        }
    })
}
export function addStudent(student){
    return request({
        url:'/students_war_exploded/add',
        method:'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data:student
    })
}
export function deleteStudent(id){
    return request({
        url:`/students_war_exploded/${id}`,
        method:'delete',
        headers: {
            'Content-Type': 'application/json'
        }
    })
}
export function updateStudent(student){
    return request({
        url:`/students_war_exploded/update`,
        method:'put',
        headers: {
            'Content-Type': 'application/json'
        },
        data:student
    })
}
export function batchDeleteStudent(data){
    return request({
        url:`/students_war_exploded/batchDelete`,
        method:'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data
    })
}
export function findStudent(params){
    return request({
        url:`/students_war_exploded/find`,
        method:'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data:params
    })
}
export function findColleges(){
    return request({
        url:`/students_war_exploded/colleges`,
        method:'get',
        headers: {
            'Content-Type': 'application/json'
        }
    })
}
export function findDeparts(colleges){
    return request({
        url:`/students_war_exploded/departs/${colleges}`,
        method:'get',
        headers: {
            'Content-Type': 'application/json'
        }
    })
}
export function findLasss(departs){
    return request({
        url:`/students_war_exploded/lasss/${departs}`,
        method:'get',
        headers: {
            'Content-Type': 'application/json'
        }
    })
}